php keep only numbers in string

48

php keep only letters and numbers -

$result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);

Comments

Submit
0 Comments